package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServlet;

@RestController
public class HelloSpring {
    @RequestMapping("hello")
    public String hello(){
        return "你好！+HelloSpring";
    }
    @RequestMapping("hi")
    public String hi(){

        return "你好！+hi";
    }
}
